"""

"""
from sympy.concrete.summations import Sum


def frequency_to_density(fre: dict) -> dict:
    sum_num = Sum(fre.values())
    density = {}
    for k, num in fre.items():
        density[k] = num / sum_num
    return density
